﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using OGAMRL.screens;

namespace OGAMRL.units
{
    public abstract class GameObject
    {
        protected Vector2 position;
        protected Texture2D texture;
        protected int width, height;

        public GameObject(Vector2 v, Texture2D t)
        {
            this.position = v;
            this.texture = t;
            this.width = texture.Width;
            this.height = texture.Height;
        }
        public void setPosition(Vector2 newPos)
        {
            position = newPos;
        }
        public Vector2 getPosition()
        {
            return position;
        }
        public void setTexture(Texture2D t)
        {
            this.texture = t;
        }
        public Texture2D getTexture()
        {
            return texture;
        }
    }
}
